package com.example.springbott.service;

import com.example.springbott.bean.MarketTopic;
import com.example.springbott.common.CommonData;
import com.example.springbott.vo.ReadTopicVo;

import java.util.Map;

public interface MarketTopicService {
    CommonData<MarketTopic> list(Integer page, Integer limit, String title, String subtitle, String sort, String order);

    MarketTopic update(MarketTopic marketTopic);

    ReadTopicVo read(Integer id);

    void delete(MarketTopic marketTopic);

    MarketTopic createTopic(MarketTopic marketTopic);

    void batchDelete(Map<String , Integer[]> map);
}
